{extend name='public/base' /}
{block name='title'}{$title}{/block}
{block name='main'}
    <div class="layui-body custom-top">
        <fieldset class="layui-elem-field layui-field-title">
            <legend class="custom-legend">管理员设置</legend>
            <div class="layui-main">
                <div class="layui-btn-group custom-top">
                    <button data-method="add" class="layui-btn">新增</button>
                </div>
                <div class="layui-field-box table-responsive">
                    <table class="layui-table">
                        <colgroup>
                            <col width="80">
                            <col width="100">
                            <col width="110">
                            <col width="150">
                            <col width="145">
                            <col width="90">
                            <col width="200">
                        </colgroup>
                        <thead>
                        <tr>
                            <th class="layui-hide">序号</th>
                            <th>用户名</th>
                            <th>昵称</th>
                            <th>手机</th>
                            <th>邮箱</th>
                            <th>创建时间</th>
                            <th>用户角色</th>
                            <th>备注</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name='list' id='vo'}
                        <tr>
                            <td class="layui-hide">{$vo.id}</td>
                            <td>{$vo.name}</td>
                            <td>{$vo.nickname}</td>
                            <td>{$vo.mobile}</td>
                            <td>{$vo.email}</td>
                            <td>{$vo.create_time}</td>
                            <td>{:config('role')[$vo.role]}</td>
                            <td>{$vo.remark}</td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
            </div>
        </fieldset>
    </div>
{/block}